//Visitor.cpp
#include "visitor.h"
#include "element.h"
#include <iostream>

void ConcreteVisitorA::VisitConcreteElementA(Element* elm)
{
    std::cout << "visitorA will visit ConcreteElementA..." << std::endl;
}
void ConcreteVisitorA::VisitConcreteElementB(Element* elm)
{
    std::cout << "visitorA will visit ConcreteElementB..." << std::endl;
}

void ConcreteVisitorB::VisitConcreteElementA(Element* elm)
{
    std::cout << "visitorB will visit ConcreteElementA..." << std::endl;
}
void ConcreteVisitorB::VisitConcreteElementB(Element* elm)
{
    std::cout << "visitorB will visit ConcreteElementB..." << std::endl;
}

